﻿/***************************************************************************
 *    
 *      Copyright (c) 2009,2010 KaiTrade LLC (registered in Delaware)
 *                     All Rights Reserved Worldwide
 *
 * STRICTLY PROPRIETARY and CONFIDENTIAL
 *
 * WARNING:  This file is the confidential property of KaiTrade LLC For
 * use only by those with the express written permission and license from
 * KaiTrade LLC.  Unauthorized reproduction, distribution, use or disclosure 
 * of this file or any program (or document) is prohibited. 
 * 
 ***************************************************************************/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace K2AlgoSet
{
    /// <summary>
    /// This class looks to detect a trend in data
    /// </summary>
    public class TrendDetect : PatternMatchBase
    {
        /// <summary>
        /// How much change is required
        /// </summary>
        private double? m_DeltaRequired;

        /// <summary>
        /// Max number of increments allowed to detect a change, if these are 
        /// exceeded then we reset the trend detect, no value => no limit
        /// </summary>
        private double? m_MaxPxIncrements;

        /// <summary>
        /// Max time allowed to detect the change - else the detector is reset
        /// </summary>
        private long? m_MaxTimeTIcks;

        /// <summary>
        /// length of time for computing rate of change
        /// </summary>
        private long? m_TimeBoxTicks;

        public TrendDetect()
        {
            

            m_Name = "TrendDetect";

            m_Log.Info("TrendDetect");
            
            m_Output = new double[1];
            m_Output[0] = -1;
            
        }
    }
}
